home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / amigem.lha / amigem / expansion / makefile < prev    next >
Encoding:
Makefile  |  1995-01-22  |  496 b   |  22 lines

  1. PREINCLUDE=libraries/configvars dos/dos
  2.  
  3. TARGET=expansion
  4. LIBBASE=ExpansionBase
  5. LIBTYPE=struct ExpansionBase
  6. OBJECTS=startup.o configdev.o $(TARGET)_functable.o
  7. LIBS=../exec/libexec.a lib$(TARGET).a lib_$(TARGET).a
  8. ENDOBJ=endcode.o
  9. DEPEND=$(OBJECTS) $(LIBS) $(ENDOBJ)
  10.  
  11. CC=gcc
  12. CFLAGS=-Wall -freg-struct-return -O3
  13.  
  14. include ../macro/makefile
  15.  
  16. %.o: %.c
  17.     $(CC) $(CFLAGS) -I .. -c $^ 2>&1|tee $*.err
  18.     -if test ! -s $*.err; then rm $*.err; fi
  19.  
  20. $(TARGET).library: $(DEPEND)
  21.     $(CC) -nostdlib -s $^ -o $@
  22.